 
using System;
using System.Collections;


namespace GiftNet.Model
{
    #region VwProductSaleByDay
    /// <summary>
    /// Instances of this class represent the properties and methods of a row in the view <b>vw_ProductSaleByDay</b>.
    /// </summary>
    public partial class VwProductSaleByDay
    {
        #region Members
        private Guid proID;
        private string name;
        private string logo;
        private string code;
        private double price;
        private double marketPrice;
        private string bill;
        private string introduce;
        private double disCount;
        private long saleAmount;
        private double bulk;
        private double weight;
        private bool individuation;
        private bool pack;
        private bool comment;
        private bool boon;
        private bool publish;
        private bool reCommend;
        private bool zone;
        private bool hot;
        private DateTime lastPayment;
        private string note;
        private int mark;
        private short state;
        private DateTime createDate;
        private bool overdue;
        private DateTime saleTime;
        private DateTime stopTime;
        private string commendWord;
        private string barCode;
        private string size;
        private string stuff;
        private string place;
        private string level;
        private string color;
        private string productMode;
        private string productType;
        private DateTime commendDate;
        private string indexDisplay;
        private string loveFlag;
        private double sumMoney;
        private double sumIndivPrice;
        private double sumIndivPackPrice;
        private double sumQuantity;
        private string year;
        private string month;
        private string day;
        private Guid storageId;
        private Guid product;
        private string takeTime;
        #endregion

        #region Constructors
        /// <summary> 
        /// Create an object from an existing row of data. This will be used by Gentle to 
        /// construct objects from retrieved rows. 
        /// </summary> 
        public VwProductSaleByDay(Guid proID, string name, string logo, string code, double price, double marketPrice, string bill, string introduce, double disCount, long saleAmount, double bulk, double weight, bool individuation, bool pack, bool comment, bool boon, bool publish, bool reCommend, bool zone, bool hot, DateTime lastPayment, string note, int mark, short state, DateTime createDate, bool overdue, DateTime saleTime, DateTime stopTime, string commendWord, string barCode, string size, string stuff, string place, string level, string color, string productMode, string productType, DateTime commendDate, string indexDisplay, string loveFlag, double sumMoney, double sumIndivPrice, double sumIndivPackPrice, double sumQuantity, string year, string month, string day, Guid storageId, Guid product, string takeTime)
        {
            takeTime = takeTime;
            this.proID = proID;
            this.name = name;
            this.logo = logo;
            this.code = code;
            this.price = price;
            this.marketPrice = marketPrice;
            this.bill = bill;
            this.introduce = introduce;
            this.disCount = disCount;
            this.saleAmount = saleAmount;
            this.bulk = bulk;
            this.weight = weight;
            this.individuation = individuation;
            this.pack = pack;
            this.comment = comment;
            this.boon = boon;
            this.publish = publish;
            this.reCommend = reCommend;
            this.zone = zone;
            this.hot = hot;
            this.lastPayment = lastPayment;
            this.note = note;
            this.mark = mark;
            this.state = state;
            this.createDate = createDate;
            this.overdue = overdue;
            this.saleTime = saleTime;
            this.stopTime = stopTime;
            this.commendWord = commendWord;
            this.barCode = barCode;
            this.size = size;
            this.stuff = stuff;
            this.place = place;
            this.level = level;
            this.color = color;
            this.productMode = productMode;
            this.productType = productType;
            this.commendDate = commendDate;
            this.indexDisplay = indexDisplay;
            this.loveFlag = loveFlag;
            this.sumMoney = sumMoney;
            this.sumIndivPrice = sumIndivPrice;
            this.sumIndivPackPrice = sumIndivPackPrice;
            this.sumQuantity = sumQuantity;
            this.year = year;
            this.month = month;
            this.day = day;
            this.storageId = storageId;
            this.product = product;
        }
        #endregion

        #region Public Properties

        public string TakeTime
        {
            get
            {
                return takeTime;
            }
        }

        /// <summary>
        /// Property relating to database column ProID
        /// </summary>
        public Guid ProID
        {
            get { return proID; }
        }

        /// <summary>
        /// Property relating to database column Name
        /// </summary>
        public string Name
        {
            get { return name.TrimEnd(); }
        }

        /// <summary>
        /// Property relating to database column Logo
        /// </summary>
        public string Logo
        {
            get { return logo.TrimEnd(); }
        }

        /// <summary>
        /// Property relating to database column Code
        /// </summary>
        public string Code
        {
            get { return code.TrimEnd(); }
        }

        /// <summary>
        /// Property relating to database column Price
        /// </summary>
        public double Price
        {
            get { return price; }
        }

        /// <summary>
        /// Property relating to database column MarketPrice
        /// </summary>
        public double MarketPrice
        {
            get { return marketPrice; }
        }

        /// <summary>
        /// Property relating to database column Bill
        /// </summary>
        public string Bill
        {
            get { return bill != null ? bill.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column Introduce
        /// </summary>
        public string Introduce
        {
            get { return introduce != null ? introduce.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column DisCount
        /// </summary>
        public double DisCount
        {
            get { return disCount; }
        }

        /// <summary>
        /// Property relating to database column SaleAmount
        /// </summary>
        public long SaleAmount
        {
            get { return saleAmount; }
        }

        /// <summary>
        /// Property relating to database column Bulk
        /// </summary>
        public double Bulk
        {
            get { return bulk; }
        }

        /// <summary>
        /// Property relating to database column Weight
        /// </summary>
        public double Weight
        {
            get { return weight; }
        }

        /// <summary>
        /// Property relating to database column Individuation
        /// </summary>
        public bool Individuation
        {
            get { return individuation; }
        }

        /// <summary>
        /// Property relating to database column Pack
        /// </summary>
        public bool Pack
        {
            get { return pack; }
        }

        /// <summary>
        /// Property relating to database column Comment
        /// </summary>
        public bool Comment
        {
            get { return comment; }
        }

        /// <summary>
        /// Property relating to database column Boon
        /// </summary>
        public bool Boon
        {
            get { return boon; }
        }

        /// <summary>
        /// Property relating to database column Publish
        /// </summary>
        public bool Publish
        {
            get { return publish; }
        }

        /// <summary>
        /// Property relating to database column ReCommend
        /// </summary>
        public bool ReCommend
        {
            get { return reCommend; }
        }

        /// <summary>
        /// Property relating to database column Zone
        /// </summary>
        public bool Zone
        {
            get { return zone; }
        }

        /// <summary>
        /// Property relating to database column Hot
        /// </summary>
        public bool Hot
        {
            get { return hot; }
        }

        /// <summary>
        /// Property relating to database column LastPayment
        /// </summary>
        public DateTime LastPayment
        {
            get { return lastPayment; }
        }

        /// <summary>
        /// Property relating to database column Note
        /// </summary>
        public string Note
        {
            get { return note != null ? note.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column Mark
        /// </summary>
        public int Mark
        {
            get { return mark; }
        }

        /// <summary>
        /// Property relating to database column State
        /// </summary>
        public short State
        {
            get { return state; }
        }

        /// <summary>
        /// Property relating to database column CreateDate
        /// </summary>
        public DateTime CreateDate
        {
            get { return createDate; }
        }

        /// <summary>
        /// Property relating to database column Overdue
        /// </summary>
        public bool Overdue
        {
            get { return overdue; }
        }

        /// <summary>
        /// Property relating to database column SaleTime
        /// </summary>
        public DateTime SaleTime
        {
            get { return saleTime; }
        }

        /// <summary>
        /// Property relating to database column StopTime
        /// </summary>
        public DateTime StopTime
        {
            get { return stopTime; }
        }

        /// <summary>
        /// Property relating to database column CommendWord
        /// </summary>
        public string CommendWord
        {
            get { return commendWord != null ? commendWord.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column BarCode
        /// </summary>
        public string BarCode
        {
            get { return barCode.TrimEnd(); }
        }

        /// <summary>
        /// Property relating to database column Size
        /// </summary>
        public string Size
        {
            get { return size != null ? size.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column Stuff
        /// </summary>
        public string Stuff
        {
            get { return stuff != null ? stuff.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column Place
        /// </summary>
        public string Place
        {
            get { return place != null ? place.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column Level
        /// </summary>
        public string Level
        {
            get { return level != null ? level.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column Color
        /// </summary>
        public string Color
        {
            get { return color != null ? color.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column ProductMode
        /// </summary>
        public string ProductMode
        {
            get { return productMode != null ? productMode.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column ProductType
        /// </summary>
        public string ProductType
        {
            get { return productType != null ? productType.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column CommendDate
        /// </summary>
        public DateTime CommendDate
        {
            get { return commendDate; }
        }

        /// <summary>
        /// Property relating to database column IndexDisplay
        /// </summary>
        public string IndexDisplay
        {
            get { return indexDisplay != null ? indexDisplay.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column LoveFlag
        /// </summary>
        public string LoveFlag
        {
            get { return loveFlag != null ? loveFlag.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column SumMoney
        /// </summary>
        public double SumMoney
        {
            get { return sumMoney; }
        }

        /// <summary>
        /// Property relating to database column SumIndivPrice
        /// </summary>
        public double SumIndivPrice
        {
            get { return sumIndivPrice; }
        }

        /// <summary>
        /// Property relating to database column SumIndivPackPrice
        /// </summary>
        public double SumIndivPackPrice
        {
            get { return sumIndivPackPrice; }
        }

        /// <summary>
        /// Property relating to database column SumQuantity
        /// </summary>
        public double SumQuantity
        {
            get { return sumQuantity; }
        }

        /// <summary>
        /// Property relating to database column year
        /// </summary>
        public string Year
        {
            get { return year != null ? year.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column month
        /// </summary>
        public string Month
        {
            get { return month != null ? month.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column day
        /// </summary>
        public string Day
        {
            get { return day != null ? day.TrimEnd() : string.Empty; }
        }

        /// <summary>
        /// Property relating to database column StorageId
        /// </summary>
        public Guid StorageId
        {
            get { return storageId; }
        }

        /// <summary>
        /// Property relating to database column Product
        /// </summary>
        public Guid Product
        {
            get { return product; }
        }

 

        #endregion
    }

}
#endregion

